package my.utils;

/**
 * 
 * @作者 钟诚
 * @日期 2011-7-21
 * @时间 下午02:19:57
 * @描述 常量
 * @版本 v1.0
 */
public interface Constant {
	public static final String CIMS_RESOURCE_BASEPATH = "resource";
	/**
	 * SESSION用户信息
	 */
	public static final String SESSION_USER = "session_user";
	/* other constant */
	public static final String ACTION_RESULT_LOGIN="showlogin";
	public static final String ACTION_RESULT_INDEX="showindex";
	public static final String ACTION_MANAGER = "manager";
	public static final String ACTION_DATAMANAGER = "datamanager";
	/**
	 * 信息正确
	 */
	public static final int MSG_OK = 1;
	/**
	 * 信息错误
	 */
	public static final int MSG_ERROR = 0;
	/**
	 * 禁用
	 */
	public static final int DISABLED = 0;
	/**
	 * 启用
	 */
	public static final int ENABLED = 1;
	/**
	 * 存在
	 */
	public static final int IS_EXIST = 1;
	/**
	 * 不存在
	 */
	public static final int IS_NOT_EXIST = 0;
	/**
	 * 普通用户权限
	 */
	public static final int AUTHORIZATION_USER = 0;
	/**
	 * 管理员权限
	 */
	public static final int AUTHORIZATION_ADMIN = 1;
	/**
	 * 数据操作管理员权限
	 */
	public static final int AUTHORIZATION_DATAADMIN = 2;
	/**
	 * 配置文件中命令前缀
	 */
	public static final String COMMAND_PRE = "command_";
	/**
	 * 数据导入命令
	 */
	public static final String COMMAND_IMPORTDATA = "importdata";
	/**
	 * 数据删除命令
	 */
	public static final String COMMAND_DELETEDATA = "deletedata";
	/**
	 * 任务:自动删除n天前的数据和文件
	 */
	public static final String JOB_DEL_DATA_AND_FILE = "delbat";
	/**
	 * 配置文件中自动删除任务的小时
	 */
	public static final String JOB_DEL_DATA_AND_FILE_PREHOUR = "delbathour";
	public static final int FILE_SIZE_M = 1024 * 1024;
	public static final int FILE_SIZE_K = 1024;
	public static final String FILE_TYPES = "fileTypes";
	public static final String FILE_SIZE = "fileSize";
	public static final String FILE_SIZE_IMG = "imgFileSize";
}
